package com.getbyte.plbc;

import java.io.UnsupportedEncodingException;
import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author げっしょく
 * @date 2021/8/4
 */
public class Demo1 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s = "邹清泉牛马";//-23, -126, -71, -26, -72, -123, -26, -77, -119, -25, -119, -101, -23, -87, -84
        byte[] bytes = s.getBytes();
        System.out.println(Arrays.toString(bytes));
        byte[] bytes1 = s.getBytes("GBK");
        System.out.println(Arrays.toString(bytes1));
        String s1 = new String(bytes);
        String gbk = new String(bytes1, "GBK");
        System.out.println(s1);
        System.out.println(gbk);
    }
}
